package com.ykdl.member.kid.beans;

import java.io.Serializable;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

/**
 * 收藏
 * @author Pengfei
 *
 */
public class FavoriteBean implements IJsonParser, Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	 * "actor_id": 47, 
    "favorite_id": 54, 
    "group": {}, 
    "target_actor_id": 25, 
    "target_object_id": 985, 
    "target_source_id": 67, 
    "topic": {}, 
    "verb_id": 1, 
    "verb_key": "group_topic"
	 */
	private int actor_id;
    private int favorite_id;
    private GroupBean group;
    private int target_actor_id;
    private int target_object_id;
    private TopicBean topic;
    private String verb_id;
    private String verb_key;
    
	public int getActor_id() {
		return actor_id;
	}

	public void setActor_id(int actor_id) {
		this.actor_id = actor_id;
	}

	public int getFavorite_id() {
		return favorite_id;
	}

	public void setFavorite_id(int favorite_id) {
		this.favorite_id = favorite_id;
	}

	public GroupBean getGroup() {
		return group;
	}

	public void setGroup(GroupBean group) {
		this.group = group;
	}

	public int getTarget_actor_id() {
		return target_actor_id;
	}

	public void setTarget_actor_id(int target_actor_id) {
		this.target_actor_id = target_actor_id;
	}

	public int getTarget_object_id() {
		return target_object_id;
	}

	public void setTarget_object_id(int target_object_id) {
		this.target_object_id = target_object_id;
	}

	public TopicBean getTopic() {
		return topic;
	}

	public void setTopic(TopicBean topic) {
		this.topic = topic;
	}

	public String getVerb_id() {
		return verb_id;
	}

	public void setVerb_id(String verb_id) {
		this.verb_id = verb_id;
	}

	public String getVerb_key() {
		return verb_key;
	}

	public void setVerb_key(String verb_key) {
		this.verb_key = verb_key;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, FavoriteBean.class);
		}
		return null;
	}

}
